<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="renderer" content="webkit|ie-comp|ie-stand">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"
		/>
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<link rel="Bookmark" href="/favicon.ico">
		<link rel="Shortcut Icon" href="/favicon.ico" />
		{include file="public/css"}
		<title>
			页面设置 - 网页管理
		</title>
	</head>
	<body>
		<nav class="breadcrumb">
			<i class="Hui-iconfont">&#xe67f;</i>首页<span class="c-gray en">&gt;</span>
			页面设置
			<span class="c-gray en">&gt;</span>
			{:$type==1?'首页':''}{:$type==2?'关于我们':''}{:$type==3?'善意文化书院':''}{:$type==4?'易画堂':''}
			{:$type==5?'课程分类':''}{:$type==6?'新闻资讯':''}{:$type==7?'联系我们':''}{:$type==8?'在线报名':''}
		</nav>
		<article class="page-container">
			<form class="form form-horizontal" id="form-article-add" action="{:url('webpage')}" enctype="multipart/form-data" method="post">
				{switch name="$type"}
				{case value="1"}
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">关于我们：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<textarea name="intro1" cols="" rows="" class="textarea">{$info.intro1}</textarea>
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">易画堂：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<textarea name="intro2" cols="" rows="" class="textarea">{$info.intro2}</textarea>
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">商城：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<textarea name="intro3" cols="" rows="" class="textarea">{$info.intro3}</textarea>
					</div>
				</div>
				{/case}
				{case value="2"}
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">关于我们：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<textarea name="intro1" cols="" rows="" class="textarea">{$info.intro1}</textarea>
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">公司理念：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<textarea name="intro2" cols="" rows="" class="textarea">{$info.intro2}</textarea>
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">公司文化：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<textarea name="intro3" cols="" rows="" class="textarea">{$info.intro3}</textarea>
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">创始人：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<textarea name="intro4" cols="" rows="" class="textarea">{$info.intro4}</textarea>
					</div>
				</div>
				{/case}
				{case value="3"}
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">吕保林老师：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<textarea name="intro1" cols="" rows="" class="textarea">{$info.intro1}</textarea>
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">何国栋老师：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<textarea name="intro2" cols="" rows="" class="textarea">{$info.intro2}</textarea>
					</div>
				</div>
				{/case}
				{case value="4"}
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">精彩活动：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<textarea name="intro1" cols="" rows="" class="textarea">{$info.intro1}</textarea>
					</div>
				</div>
				{/case}
				{case value="5"}
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">课程分类：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<textarea name="intro1" cols="" rows="" class="textarea">{$info.intro1}</textarea>
					</div>
				</div>
				{/case}
				{case value="6"}
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">新闻简介：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<textarea name="intro" cols="" rows="" class="textarea">{$info.intro}</textarea>
					</div>
				</div>
				{/case}
				{case value="7"}
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">联系我们：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<textarea name="intro1" cols="" rows="" class="textarea">{$info.intro1}</textarea>
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>联系方式：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" class="input-text" value="{$info.intro2}" name="intro2">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>工作时间：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" class="input-text" value="{$info.intro3}" name="intro3">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>地址：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" class="input-text" value="{$info.intro4}" name="intro4">
					</div>
				</div>
				{/case}
				{case value="8"}
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">新闻简介：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<textarea name="intro1" cols="" rows="" class="textarea"  placeholder="">{$info.intro1}</textarea>
					</div>
				</div>
				{/case}
				{/switch}
				<div class="row cl">
					<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
						<input type="hidden" name="id" value="{$info.id}">
						<input type="hidden" name="type" value="{$type}">
						<button class="btn btn-primary radius" type="submit"> 保存</button>
						<!-- <button onClick="removeIframe();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button> -->
					</div>
				</div>
			</form>
		</article>
		<!--_footer 作为公共模版分离出去-->
		{include file="public/js"}
		<!--/_footer /作为公共模版分离出去-->
		<!--请在下方写此页面业务相关的脚本-->
		<script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
		<script type="text/javascript" src="/admin/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
		<script type="text/javascript" src="/admin/lib/jquery.validation/1.14.0/validate-methods.js"></script>
		<script type="text/javascript" src="/admin/lib/jquery.validation/1.14.0/messages_zh.js"></script>
		<script type="text/javascript" src="/admin/lib/webuploader/0.1.5/webuploader.min.js"></script>
		<script type="text/javascript" src="/admin/lib/ueditor/1.4.3/ueditor.config.js"></script>
		<script type="text/javascript" src="/admin/lib/ueditor/1.4.3/ueditor.all.min.js"></script>
		<script type="text/javascript" src="/admin/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
		<script type="text/javascript">
			$(function() {
				$('.skin-minimal input').iCheck({
					checkboxClass: 'icheckbox-blue',
					radioClass: 'iradio-blue',
					increaseArea: '20%'
				});
				//表单验证
				$("#form-article-add").validate({
					rules: {
						title:"required",
						img:"required",
						sort:{
							required:true,
							digits:true
						}
					}
				});
				var ue = UE.getEditor('editor');
			});
		</script>
		<!--/请在上方写此页面业务相关的脚本-->
	</body>

</html>